package Before826.work;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;

public class test  {
    public static void main(String[] args)  throws Exception{
        Class clazz = Class.forName("Before826.work.Dog");
        Constructor constructor = clazz.getDeclaredConstructor(String.class);
        Field f =  clazz.getDeclaredField("name");
        Method m =  clazz.getDeclaredMethod("show1",String.class);
        System.out.println(constructor);
        System.out.println(f);
        System.out.println(m);
    }



}





